package shapes;

public class canvas
{
		int length;
		int width;
		shape []s=new shape[100];
		int count;
		public canvas()
		{
			length = 400;
			width = 300;
			count = 0;
		}
		void addShape(shape sp)
		{
			s[count] = sp;
			count+=1;
		}
		void display()
		{
			int j=0;
			while(j<count)
			{
				System.out.println( s[j].toString());
				j+=1;
			}
		}

}
